<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <caption>员工列表</caption>
    <tr>
        <th>名字</th>
        <th>工资</th>
        <th>工作</th>
    </tr>
    <tr v-for="emp in arr">
        <td>{{emp.name}}</td>
        <td>{{emp.salary}}</td>
        <td>{{emp.job}}</td>
    </tr>
    <tr v-for="emp in brr">
        <td>{{emp.name}}</td>
        <td>{{emp.na}}</td>
        <td>{{emp.me}}</td>
    </tr>
</table>
<script src="../vue.js"></script>
<script>
    let v = new Vue({
        el: "table",
        data: {
            arr: [{name: "悟空", salary: 2000, job: "程序员"},
                {name: "八戒", salary: 3000, job: "销售"},
                {name: "沙僧", salary: 4000, job: "人事"}]
            ,
            brr: [{name: "欧内", na: "的手", me: "好汉"},
                {name: "奥利", na: "安", me: "非"},
                {name:"么么哒",na: "米",me:"诺"}]
        }

    })
</script>
</body>
</html>